#!/usr/bin/python
# -*- coding: utf-8 -*-

class Constraint:

    def __init__ (self, constraint_id,
                  src_role, src_speed, src_areas, src_displacement_x, src_displacement_y,
                  dest_role, dest_areas, dest_displacement_x, dest_displacement_y,
                  time):

        self._constraint_id = constraint_id

        self._src_role = src_role
        self._src_speed = src_speed
        self._src_areas = src_areas
        self._src_displacement_x = src_displacement_x
        self._src_displacement_y = src_displacement_y

        self._dest_role = dest_role
        self._dest_areas = dest_areas
        self._dest_displacement_x = dest_displacement_x
        self._dest_displacement_y = dest_displacement_y

        self._time = time

    def __str__ (self):

        aux = 'Constraint ID: ' + str(self._constraint_id) + '\n'
        aux += '\t' + str(self._src_role) + str(self._src_speed) + '\n'
        aux += '\t' + str(self._src_areas) + '\n'
        aux += '\t' + str(self._src_displacement_x) + str(self._src_displacement_y) + '\n'
        aux += '\n'

        aux += '\t' + str(self._dest_role) + '\n'
        aux += '\t' + str(self._dest_areas) + '\n'
        aux += '\t' + str(self._dest_displacement_x) + str(self._dest_displacement_y) + '\n'
        aux += '\t' + str(self._time) + '\n'

        return aux
